﻿using pHMb.Spectrogram;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Lung_Sounds_V2
{
    /// <summary>
    /// Interaction logic for SetNoiseWindow.xaml
    /// </summary>
    public partial class SetNoiseWindow : Window
    {
        public SpectrogramPane Spectrogram { get; set; }

        public SpectrogramPane.XSelection Selection
        {
            get
            {
                return (SpectrogramPane.XSelection)listBoxSelections.SelectedItem;
            }
            set
            {
                listBoxSelections.SelectedItem = value;
            }
        }

        public SetNoiseWindow(SpectrogramPane spectrogram)
        {
            Spectrogram = spectrogram;

            InitializeComponent();
        }

        private void buttonOk_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            Close();
        }

        private void buttonCancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            Close();
        }


    }
}
